<template>
    <view>
		分类页面
		<button @click="remove">删除</button>
		<button @click="xueli">显示选择菜单</button>
		

    </view>
</template>

<script setup>
	function remove(){
		uni.showModal({
			title:"是否删除",
			success: function (res) {
					if (res.confirm) {
						console.log('用户点击确定');
					} else if (res.cancel) {
						console.log('用户点击取消');
					}
				}
		})
	}
	function xueli(){
		uni.showActionSheet({
			title:"请选择",
			itemList: ['A', 'B', 'C'],
				success: function (res) {
					console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
				},
				// 选择了取消
				fail: function (res) {
					console.log('shibai',res.errMsg);
				}
		})
	}
	onShow(()=>{
		uni.showNavigationBarLoading(
			
		);
		uni.setNavigationBarTitle({
			title:"分类动态标题"
			
		})
		setTimeout(()=>{
			uni.hideNavigationBarLoading(
				
			);
			
		},3000)
		
	})
	onReady(()=>{
		// uni.setNavigationBarTitle({
		// 	title:"分类动态标题"
			
		// })
	
	})

</script>

<style lang="scss" scoped>

</style>
